projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5618a50
)
* lisp/align.el (align): Simplify a lambda
author
Artur Malabarba
<bruce.connor.am@gmail.com>
Sun, 3 Jan 2016 16:58:35 +0000
(16:58 +0000)
committer
Artur Malabarba
<bruce.connor.am@gmail.com>
Sun, 3 Jan 2016 16:58:35 +0000
(16:58 +0000)
lisp/align.el
patch
|
blob
|
history
diff --git
a/lisp/align.el
b/lisp/align.el
index da8e51cf120dff872b5b98dd797f7a0569f42ea7..7e439f3e073a3440dd1ab30230deceef2f87cac4 100644
(file)
--- a/
lisp/align.el
+++ b/
lisp/align.el
@@
-893,11
+893,10
@@
on the format of these lists."
(or exclude-rules
align-mode-exclude-rules-list
align-exclude-rules-list)
- (function
- (lambda (b e mode)
- (when (and mode (listp mode))
- (setq sec-first (min sec-first b)
- sec-last (max sec-last e))))))
+ (lambda (b e mode)
+ (when (consp mode)
+ (setq sec-first (min sec-first b)
+ sec-last (max sec-last e)))))
(if (< sec-first sec-last)
(align-region sec-first sec-last 'entire
(or rules align-mode-rules-list align-rules-list)